package com.hanggold.endpoint.filter;

import org.springframework.stereotype.Component;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-07-25 17:15
 * @since
 **/
//@Component
public class EndpointServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("自定义我的个人servlet....");
        resp.getWriter().write(" hello world my servlet");
    }
}
